﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using AssetManageSystem.Model.OrgManage;


namespace AssetManageSystem.ViewModel.OrgManage.UserVMs
{
    public partial class UserSearcher : BaseSearcher
    {
        [Display(Name = "姓名")]
        public String UserName { get; set; }
        [Display(Name = "性别")]
        public UserSexEnum? UserSex { get; set; }
        [Display(Name = "电话号码")]
        public String UserPhone { get; set; }
        public List<ComboSelectListItem> AllUserDeps { get; set; }
        [Display(Name = "部门")]
        public Guid? UserDepId { get; set; }

        protected override void InitVM()
        {
            AllUserDeps = DC.Set<Department>().GetSelectListItems(Wtm, y => y.DepName);
        }

    }
}
